<template>
  <div>
    <button @click="jump">Button-跳转到购物车页面</button>
  </div>
</template>

<script>
export default {
  data() {
    return {
      msg: ""
    };
  },
  methods: {
    jump() {
      //this.$router.push("/cart")
      //传递的参数用{{ $route.query.goodsId }}获取
    //   this.$router.push({ path: "http://www.baidu.com" });
    window.open("UnZip://article/A")
      //this.$router.go(-2)
      //后退两步
    }
  }
};
</script>
<style>
</style>
